<?php 


class LyException extends Exception {
    
	public $msg_arg = array();

    public function __construct($message, $code =0, Exception $previous = null, $filename=null) {
        parent::__construct($message, $code);
	    if (!is_null($previous)){
	            $this -> previous = $previous;
	        }
	    if(isset($filename)){
	        $this-> file = $filename;
	    }
    }
   
    public function _toString(){
		return $this->message;
    }
}
?>